//
//  CYWToast.h
//  T-BoxManager
//
//  Created by 车音 on 2019/6/24.
//  Copyright © 2019 CheYin. All rights reserved.
//


#import <QuartzCore/QuartzCore.h>

#define RGB(a, b, c) [UIColor colorWithRed:(a / 255.0f) green:(b / 255.0f) blue:(c / 255.0f) alpha:1.0f]
#define RGBA(a, b, c, d) [UIColor colorWithRed:(a / 255.0f) green:(b / 255.0f) blue:(c / 255.0f) alpha:d]

typedef NS_ENUM(NSInteger, DDPWToastDuration) {
    DDPkWTShort = 1,
    DDPkWTLong = 5
};

@interface CYWToast : UIView

+ (void)ddpShowWithText:(NSString *)text;
+ (void)ddpShowWithImage:(UIImage *)image;

+ (void)ddpShowWithText:(NSString *)text duration:(NSInteger)duration;
+ (void)ddpShowWithImage:(UIImage *)image duration:(NSInteger)duration;

+ (void)ddpShowWithText:(NSString *)text duration:(NSInteger)duration roundedCorners:(BOOL)roundedCorners;
+ (void)ddpShowWithImage:(UIImage *)image duration:(NSInteger)duration roundedCorners:(BOOL)roundedCorners;


+ (void)ddpShowWithImage:(UIImage *)image text:(NSString *)text;
+ (void)ddpShowWithImage:(UIImage *)image text:(NSString *)text duration:(NSInteger)duration;

@end
